import request from '@/utils/request'

/**
 * 获取关键词列表
 */
export const getList = (parmas,data) => {
  return request({
    url: `/mall/searchFeedback/queryListByWord?current=${parmas.current}&size=${parmas.size}`,
    method: 'post',
    data,
  })
}
/**
 * 获取图片列表
 */
export const getImgList = (parmas,data) => {
  return request({
    url: `/mall/searchFeedback/queryListByPicture?current=${parmas.current}&size=${parmas.size}`,
    method: 'post',
    data,
  })
}
/**
 * 修改状态
 */
export const editStatus = (id, dealStatus) => {
  return request({
    url: `/mall/searchFeedback/changeStats/${id}?dealStatus=${dealStatus}`,
    method: 'post',
  })
}
/**
 * 忽略
 */
export const ignore = (id) => {
  return request({
    url: `/mall/searchFeedback/ignore/${id}`,
    method: 'post',
  })
}
/**
 * 查询数量
 */
export const getCount = (searchType) => {
  return request({
    url: `/mall/searchFeedback/getFeedbackTotal?searchType=${searchType}`,
  })
}

